package com.hibase.upms.entity.role.vo;

import com.hibase.core.web.annotation.HibaseValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import java.util.List;

/**
 *
 * @author ChrisCui
 * @date 2019/04/19
 */
@Data
@ApiModel("添加/移除角色用户vo")
@HibaseValid
public class MdsRoleUserOpVO {

    @NotEmpty(message = "请选择角色")
    @ApiModelProperty(value = "角色id")
    private String roleId;

    @NotEmpty(message = "请至少选择一个用户")
    @ApiModelProperty(value = "用户id集合")
    private List<String> userId;

}
